`timescale 1ns / 1ps

module EXT(
    input [15:0] imm16,
    output [31:0] imm32,
    input [1:0] Eop
    );

    assign imm32 = (Eop == 2'b00)? {16'b0, imm16}:
                   (Eop == 2'b01)? {{16{imm16[15]}}, imm16}:
                   (Eop == 2'b10)? {imm16, 16'b0}:
                                   {32'b0};

endmodule
